home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 8 / Night Owl CD-ROM (NOPV8) (Night Owl Publisher) (1993).ISO / 047a / lex_yacc.arj / MAKEFILE < prev    next >
Text File  |  1990-01-14  |  2KB  |  51 lines

  1.  
  2. # Lex and Yacc examples makefile V0.0 2-23-89, V0.1 11-21-89 AG,
  3. # V0.2 1-14-90 AG.
  4. # This makefile, when run through Borland's make, generates the executable
  5. # (.EXE) files for the sample Lex and Yacc applications on the distribution
  6. # disk, provided that the Turbo Pascal compiler, Lex and Yacc have been
  7. # installed properly.
  8. # The command line driven Turbo Pascal compiler, tpc.exe, as well as yacc.exe
  9. # and lex.exe must either be in the current directory, or in some directory
  10. # on the DOS PATH, before make is run.
  11. # Sample Lex programs:
  12. # - CREF.L: a cross reference utility for Turbo Pascal programs
  13. # - DIGRAM.L: produces digram tables
  14. # - FINDPROC.L: finds function and procedure headings in multiple Turbo
  15. #   Pascal source files
  16. # - LENGS.L: counts word lengths in input file
  17. # - STRIP.L: strips whitespace from input file
  18. # - TABLE.L: demonstration of character tables (%T) in Lex programs
  19. # Sample Yacc programs:
  20. # - EXPR.Y: a simple arithmetic expression calculator
  21. # - EXPRLEX.L: Lex source of the lexical analyzer for EXPR.Y
  22. # - PAS.Y: Yacc source for complete ISO Level 0 Pascal parser
  23. # - PASLEX.L: Lex source of the lexical analyzer for PAS.Y
  24. # To compile all examples (except the Pascal parser), simply issue the
  25. # command `make'. To compile all examples (including the Pascal parser),
  26. # issue the command `make all'; note that the Pascal parser will take
  27. # quite a while and will require 640 KB RAM to be compiled (if you
  28. # don't have that much main memory, run yacc on pas.y manually, and then
  29. # execute `make all').
  30. # To generate a particular example, specify that program as an argument
  31. # to make, e.g. `make pas.exe'.
  32.  
  33. examples: cref.exe digram.exe expr.exe findproc.exe lengs.exe\
  34.   strip.exe table.exe
  35. all: cref.exe digram.exe expr.exe findproc.exe lengs.exe\
  36.   pas.exe strip.exe table.exe
  37. .pas.exe:
  38.   tpc $* /m
  39. .l.pas:
  40.   lex $*
  41. .y.pas:
  42.   yacc $*
  43. cref.exe: cref.pas
  44. digram.exe: digram.pas
  45. expr.exe: expr.pas exprlex.pas
  46. findproc.exe: findproc.pas
  47. lengs.exe: lengs.pas
  48. pas.exe: pas.pas paslex.pas
  49. strip.exe: strip.pas
  50. table.exe: table.pas
  51.